package com.xjrsoft.module.customer.erp_model.goodsManage.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;

import com.xjrsoft.common.Enum.TransDataType;
import com.xjrsoft.common.annotation.DataTrans;
import lombok.Data;
import io.swagger.annotations.ApiModel;

/**
 * 视图实体类
 *
 * @author pp
 * @since 2021-10-09
 */
@Data
@ApiModel(value = "ErpGoodsVO对象", description = "ErpGoodsVO对象")
public class ErpGoodsVo {
	private static final long serialVersionUID = 1L;

	@JsonProperty("F_Id")
	private String fId;

	@JsonProperty("F_EnCode")
	private String fEncode;

	@JsonProperty("F_FullName")
	private String fFullname;

	@JsonProperty("F_BarCode")
	private String fBarcode;

	@JsonProperty("F_Brand")
	private String fBrand;

	@JsonProperty("F_Specs")
	private String fSpecs;

	@JsonProperty("F_DefaultWarehouse")
	private String fDefaultwarehouse;

	@JsonProperty("F_BasicUnit")
	@DataTrans(dataType = TransDataType.DATA_SQL, dataCode = "localDB", sql = "select c.F_Id,c.F_FullName from erp_unitconvert c where c.F_ParentId='0'", savedField = "F_Id", showField = "F_FullName", multi = false)
	private String fBasicunit;

	@JsonProperty("F_InUnit")
	@DataTrans(dataType = TransDataType.DATA_SQL, dataCode = "localDB", sql = "select c.F_Id,c.F_FullName from erp_unitconvert c where c.F_ParentId='0'", savedField = "F_Id", showField = "F_FullName", multi = false)
	private String fInunit;

	@JsonProperty("F_OutUnit")
	@DataTrans(dataType = TransDataType.DATA_SQL, dataCode = "localDB", sql = "select c.F_Id,c.F_FullName from erp_unitconvert c where c.F_ParentId='0'", savedField = "F_Id", showField = "F_FullName", multi = false)
	private String fOutunit;

	@JsonProperty("F_ComUnit")
	@DataTrans(dataType = TransDataType.DATA_SQL, dataCode = "localDB", sql = "select c.F_Id,c.F_FullName from erp_unitconvert c where c.F_ParentId='0'", savedField = "F_Id", showField = "F_FullName", multi = false)
	private String fComunit;

	@JsonProperty("F_SalePrice")
	private BigDecimal fSaleprice;

	@JsonProperty("F_CostPrice")
	private BigDecimal fCostprice;

	@JsonProperty("F_GoodsImage")
	private String fGoodsimage;

	@JsonProperty("F_Description")
	private String fDescription;

	@JsonProperty("F_GoodsCategoryId")
	@DataTrans(dataType = TransDataType.DATA_SQL, dataCode = "localDB", sql = "select w.F_Id,w.F_FullName from erp_goodscategory w where w.F_ParentId!=0 ", savedField = "F_Id", showField = "F_FullName", multi = false)
	private String fGoodscategoryid;

}
